using System;
using System.Collections.Generic;
using System.Text;

namespace BTV.Forms.Components
{
    public class RssObjectCollection : List<RssObject>
    {
        private int _counter;

        public int Counter
        {
            get { return _counter; }
            set { _counter = value; }
        }

        public RssObject Next
        {
            get
            {
                Counter++;
                if (_counter == this.Count)
                {
                    Counter = 0;
                    return this[Counter];
                }
                return this[Counter];
            }
        }
    }
}
